package com.lggry.javabean;

public class Student {
   //私有变量
    private String name;
    private double Chinese;
    private double Math;;
    private double English;

    //必须提供无参构造器
    public Student() {
    }

    //提供一个有参构造器（可选）
    public Student(String name, double chinese, double math, double english) {
        this.name = name;
        this.Chinese = chinese;
        this.Math = math;
        this.English = english;
    }

    //2，提供公开的getter 和setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getChinese() {
        return Chinese;
    }

    public void setChinese(double chinese) {
        Chinese = chinese;
    }

    public double getMath() {
        return Math;
    }

    public void setMath(double math) {
        Math = math;
    }

    public double getEnglish() {
        return English;
    }

    public void setEnglish(double english) {
        English = english;
    }
}
